package com.objcat.servicecustomer.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ClassName: TestController
 * Description:
 * <p>
 * date: 2020/7/23 18:54
 *
 * @author misheep
 * @since JDK 1.8
 */
@RestController
@Slf4j
public class TestController {

//    @Autowired
//    private RestTemplate restTemplate;

    @GetMapping("/gateway")
    public String gateway(){
        return "failed";
    }
//    @GetMapping("/gate")
//    public String gate(){
//        return "gate";
//    }

//    @GetMapping("/test/{string}")
//    public String test(@PathVariable String string){
//        return restTemplate.getForObject("http://service-provider/test/"+string, String.class);
//    }

}
